package com.pets.web.service;

import com.pets.web.dto.AllSumDto;
import com.pets.web.dto.CreateOrderDto;
import com.pets.web.dto.SearchOrderDto;
import com.pets.web.entity.PetsOrders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pets.web.entity.PetsComment;
import com.pets.web.vo.ApiPetOrdersSearchRequest;
import com.pets.web.vo.CreateOrderRequest;
import com.pets.web.vo.PetOrdersSearchRequest;
import com.pets.web.vo.SearchOrderRequest;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author zhurenwang
 * @since 2024-05-26
 */
public interface IPetOrdersService extends IService<PetsOrders> {

    List<PetsOrders> list(PetOrdersSearchRequest request);

    int deleteById(Integer id);

    SearchOrderDto searchOrder(SearchOrderRequest request);

    void updateByIds(String orderIds);

    Long countByGoodsId(Integer goodsId);

    List<PetsOrders> getOrderList(Integer goodsId);

    CreateOrderDto create(CreateOrderRequest request);

    ResponseEntity<Void> notify(HttpServletRequest request, String body);

    List<PetsOrders> list(ApiPetOrdersSearchRequest request);

    PetsOrders selectByOrderNo(String orderNo);

    PetsOrders selectByUserId(Integer userId, Integer goodsId);

    AllSumDto sumAll(Integer goodsId);

    Long sumWeightByGoodsId(Integer goodsId);

    List<PetsOrders> recordList(Integer goodsId);

}
